package com.chb.demo.dao;

import com.chb.demo.entity.Company;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import com.chb.demo.entity.User;

@Repository
public interface UserDao extends JpaRepository<User,String> {

    @Query("select u from User u where u.account=?1 and u.password=?2")
    User loginCheck(String account,String password);
}
